package com.illtamer.infinite.morii.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.JdbcType;

@TableName("morii_object")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MoriiObject {

    /**
     * 逻辑主键，自增
     * */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * MoriiObject key，缓存索引
     * */
    @TableField("key")
    private String key;

    /**
     * pom 文件
     * */
    @TableField(value = "pom", jdbcType = JdbcType.BINARY)
    private byte[] pom;

    /**
     * jar 文件
     * */
    @TableField(value = "jar", jdbcType = JdbcType.BINARY)
    private byte[] jar;

}
